home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol129 / xlglob.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-12-15  |  2.2 KB  |  64 lines

  1. /* xlglobals - xlisp global variables */
  2.  
  3. #include "xlisp.h"
  4. #define NIL    0    /* >>>> hack for CI-C86 <<<< */
  5.  
  6. /* symbols */
  7. NODE *true = NIL;
  8. NODE *s_quote = NIL, *s_function = NIL;
  9. NODE *s_bquote = NIL, *s_comma = NIL, *s_comat = NIL;
  10. NODE *s_evalhook = NIL, *s_applyhook = NIL;
  11. NODE *s_lambda = NIL, *s_macro = NIL;
  12. NODE *s_stdin = NIL, *s_stdout = NIL;
  13. NODE *s_tracenable = NIL, *s_tlimit = NIL, *s_breakenable = NIL;
  14. NODE *s_continue = NIL, *s_quit = NIL;
  15. NODE *s_car = NIL, *s_cdr = NIL;
  16. NODE *s_get = NIL, *s_svalue = NIL, *s_splist = NIL;
  17. NODE *s_eql = NIL, *k_test = NIL, *k_tnot = NIL;
  18. NODE *k_optional = NIL, *k_rest = NIL, *k_aux = NIL;
  19. NODE *a_subr = NIL, *a_fsubr = NIL;
  20. NODE *a_list = NIL, *a_sym = NIL, *a_int = NIL;
  21. NODE *a_str = NIL, *a_obj = NIL, *a_fptr = NIL;
  22. NODE *oblist = NIL, *keylist = NIL, *s_unbound = NIL;
  23.  
  24. /* evaluation variables */
  25. NODE *xlstack = NIL;
  26. NODE *xlenv = NIL;
  27. NODE *xlnewenv = NIL;
  28.  
  29. /* exception handling variables */
  30. CONTEXT *xlcontext = NULL;    /* current exception handler */
  31. NODE *xlvalue = NIL;        /* exception value */
  32.  
  33. /* debugging variables */
  34. int xldebug = 0;        /* debug level */
  35. int xltrace = -1;        /* trace stack pointer */
  36. NODE **trace_stack = NULL;    /* trace stack */
  37.  
  38. /* gensym variables */
  39. char gsprefix[STRMAX+1] = { 'G',0 };    /* gensym prefix string */
  40. int gsnumber = 1;        /* gensym number */
  41.  
  42. /* i/o variables */
  43. int xlplevel = 0;        /* prompt nesting level */
  44. int xlfsize = 0;        /* flat size of current print call */
  45. int prompt = TRUE;        /* input prompt flag */
  46.  
  47. /* dynamic memory variables */
  48. long total = 0L;        /* total memory in use */
  49. int anodes = 0;            /* number of nodes to allocate */
  50. int nnodes = 0;            /* number of nodes allocated */
  51. int nsegs = 0;            /* number of segments allocated */
  52. int nfree = 0;            /* number of nodes free */
  53. int gccalls = 0;        /* number of gc calls */
  54. struct segment *segs = NULL;    /* list of allocated segments */
  55. NODE *fnodes = NIL;        /* list of free nodes */
  56.  
  57. /* object programming variables */
  58. NODE *self = NIL, *class = NIL, *object = NIL;
  59. NODE *new = NIL, *isnew = NIL, *msgcls = NIL, *msgclass = NIL;
  60. int varcnt = 0;
  61.  
  62. /* general purpose string buffer */
  63. char buf[STRMAX+1] = { 0 };
  64.